package com.geek.javase.ch03;

/**
 * @author chenshupeng
 * @date 2025/9/2
 * @desc TODO
 **/

public class TeacherMain {
    public static void main(String[] args) {
        //无参数构造
        Teacher T1=new Teacher();
        T1.setAge(30);
        T1.setName("王二");
        T1.setGender('男');
        T1.setToughtMajor("数学");
        System.out.println(T1);
        T1.Eat();
        T1.Sleep();


        Teacher T2=new Teacher("小王",'女',30,"语文");
        System.out.println(T2);
        T1.Eat();
        T1.Sleep();

    }
}
